<h3><B>banner或新鲜事列表</B></h3>
<br>
<div class="form-group">
    <label class="control-label" for="textinput">类别:</label>
    <select ng-model="value" ng-options="m.value as m.name for m in bannerType"
            ng-change="getData()">
        <option value="">-- 请选择 --</option>
    </select>
</div>

<a ng-show="value == 1" ng-click="clickAddBanner()" class="btn-primary btn-sm nodecoration">添加banner</a>
<a ng-show="value == 2" ng-click="clickAddBanner()" class="btn-primary btn-sm nodecoration">添加新鲜事</a>
<br>
<br>
<paging>
    <ul class="pagination" num-pages="tasks.pageCount" current-page="tasks.currentPage"
        on-select-page="selectPage(page)">
        <li ng-class="{disabled: noPrevious()}"><a ng-click="selectPrevious()">&laquo;</a>

        </li>
        <li ng-repeat="page in pages" ng-class="{active: isActive(page)}"><a
                ng-click="selectPage(page)">{{page}}</a>

        </li>
        <li ng-class="{disabled: noNext()}"><a ng-click="selectNext()">&raquo;</a>

        </li>
    </ul>
</paging>
<div class="tab-content">
    <div class="tab-pane active" id="tab_a">
        <table class="table table-condensed">
            <thead>
            <tr>
                <th ng-show="value ==1">图片</th>
                <th ng-show="value ==2">内容</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="banner in bannerList">
                <td  ng-show="value ==1"><img style="width:200px;" ng-src="{{banner.imageURL}}"></td>
                <td  ng-show="value ==2">{{banner.message}}</td>
                <td>{{banner.dateCreated | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                <td>
                    <button type="button" class="btn btn-default btn-xs"
                            ng-click="bannerEdit(banner.objId)">
                        编辑
                    </button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>